package com.train.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.train.user.domain.UserPlanProgress;
import com.train.user.dto.PlanProgressDTO;

/**
 * @author train
 * @description 针对表【user_plan_progress(用户计划进度表)】的数据库操作Service
 * @createDate 2024-10-20 14:38:11
 */
public interface UserPlanProgressService extends IService<UserPlanProgress> {

    UserPlanProgress updatePlanProgress(PlanProgressDTO planProgress);
    
    /**
     * 重置指定计划的进度
     * @param planId 计划ID
     * @param userId 用户ID
     * @return 是否重置成功
     */
    boolean resetPlanProgress(Long planId, Long userId);
}